package com.xumt.hwHMSdemo;

import android.os.Bundle;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import com.xumt.hwHMSdemo.HMSserver.MyPushService;

import androidx.appcompat.app.AppCompatActivity;
import androidx.navigation.NavController;
import androidx.navigation.ui.NavigationUI;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;



public class NewmainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_newmain);
        MyPushService.getToken(NewmainActivity.this);
        BottomNavigationView navView = findViewById(R.id.nav_view);
        NavController navController = Navigation.findNavController(this, R.id.nav_host_fragment);
        NavigationUI.setupWithNavController(navView, navController);
    }
}